package cn.gmcx.lazy.izze.pojo;

import cn.gmcx.lazy.izze.enums.ConcernEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoVo {
    private Integer id;

    @NotBlank(message = "视频地址不能为空")
    private String videoUrl;
    private Integer type;
    private Integer userId;
    private Integer praise;
    private Integer concern;
    private Integer comments;
    private Integer share;
    private String synopsis;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private User user;

    private ConcernEnum isConcern;

    private Boolean isPraise;
}
